<#if response.OK>
	<#if response.result?? && response.result?size gt 0>
		<tbody>
			<#list response.result as msg>
				<tr data="${msg.offsetMsgId}" dataIdx="${msg_index + 1}">
					<td <#if traceEnabled>data-tooltip="true" title="查看${msg.msgId}的trace信息"</#if>><#if traceEnabled><a href="#" onclick="traceHasTime('${msg.msgId}')"></#if>${msg_index + 1}<#if traceEnabled></a></#if></td>
					<td>${msg.bornHostString}</td>
					<td data-tooltip="true" title="存储时间:${msg.storeTimestamp?number_to_datetime?string("yyyy-MM-dd HH:mm:ss.SSS")}">${msg.bornTimestamp?number_to_datetime?string("yyyy-MM-dd HH:mm:ss.SSS")}</td>
					<td data-tooltip="true" title="偏移量:${msg.queueOffset}">${msg.broker!}:${msg.queueId}</td>
					<td data-tooltip="true" title="序列化方式:<#if msg.messageBodySerializer??>${msg.messageBodySerializer.getName()}(${msg.messageBodyTypeString!})<#else>${msg.messageBodyTypeString!}</#if>"><#if msg.decodedBody?length gt 1000><pre>${msg.decodedBody}</pre><#else>${msg.decodedBody}</#if></td>
					<td>${msg.keys!}</td>
					<td>${msg.tags!}</td>
					<td class="text-center"><span class="glyphicon glyphicon-eye-open" style="cursor:pointer;" onclick=track(${msg.toJson()}) data-target="#trackModal" data-toggle="modal"></span></td>
				</tr>
			</#list>
		</tbody>
		<script>
			initMultiSelect("tbody");
			$(function() {
		        $('[data-tooltip="true"]').tooltip({
		            container: 'body'
		        });
			});
		</script>
	<#else>
		<tbody>
			<tr class="no_more_data"><td colspan=8 class="text-center">查无数据</td></tr>
		</tbody>
	</#if>
<#else>
	<tbody>
		<tr class="no_more_data"><td colspan=8 class="text-center">查询异常！${response.message}</td></tr>
	</tbody>
</#if>
<script>
	$("#pager").hide();
</script>